home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / util / moni / Scout-src.lha / netinclude / unistd.h < prev    next >
C/C++ Source or Header  |  2002-09-16  |  2KB  |  87 lines

  1. #ifndef UNISTD_H
  2. #define    UNISTD_H \
  3.        "$Id: unistd.h,v 1.1.1.1 2001/11/26 22:21:13 tboeckel Exp $"
  4. /*
  5.  *    Usergroup.library and bsdsocket.library function prototypes
  6.  *        for 32 bit C compilers
  7.  *
  8.  *      Copyright © 1994 AmiTCP/IP Group,
  9.  *                       Network Solutions Development, Inc.
  10.  *                       All rights reserved.
  11.  */
  12.  
  13. #ifndef SYS_TYPES_H
  14. #include <sys/types.h>
  15. #endif
  16. #ifndef SYS_TIME_H
  17. #include <sys/time.h>
  18. #endif
  19.  
  20. gid_t getegid(void);
  21. uid_t geteuid(void);
  22. gid_t getgid(void);
  23. int   getgroups(int, gid_t []);
  24. char *getlogin(void);
  25. uid_t getuid(void);
  26. #if 0
  27. int   isatty(int);
  28. #endif
  29. int   setgid(gid_t);
  30. int   setuid(uid_t);
  31. char *ttyname(int);
  32. pid_t getpid(void);
  33. pid_t setsid(void);
  34. void  sleep(unsigned int);
  35. mode_t umask(mode_t);
  36.  
  37. int __dup(int);
  38. int __dup2(int, int);
  39.  
  40. extern char *optarg;
  41. extern int optind;
  42. extern int optopt;
  43. extern int opterr;
  44.  
  45. int getopt(int, char * const [], const char *);
  46.  
  47. #define dup   __dup
  48. #define dup2  __dup2 
  49.  
  50. #ifndef    _POSIX_SOURCE
  51. pid_t getsid(void);
  52. mode_t getumask(void);
  53.  
  54. #if 0
  55. int   getdtablesize(void);
  56. long  gethostid(void);
  57. int   gethostname(char *, int);
  58. #endif
  59. int   select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
  60. #if 0
  61. void  sethostid(long);
  62. int   sethostname(const char *, int);
  63. #endif
  64. int   rcmd(char **, int, const char *, const char *, const char *, int *);
  65. int   ruserok(const char *, int, const char *, const char *);
  66. int   rresvport(int *alport);
  67.  
  68. char *crypt(const char *, const char *);
  69. char *getpass(const char *);
  70. char *getusershell(void);
  71.  
  72. int   initgroups(const char *, gid_t);
  73. int   setgroups(int, const gid_t []);
  74. int   setlogin(const char *);
  75. int   setregid(gid_t, gid_t);
  76. int   setreuid(uid_t, uid_t);
  77. int   setrgid(gid_t);
  78. int   setruid(uid_t);
  79. int   setegid(gid_t);
  80. int   seteuid(uid_t);
  81. void  setusershell(void);
  82. int   ttyslot(void);
  83. void  usleep(unsigned int);
  84. #endif /* !_POSIX_SOURCE */
  85.  
  86. #endif /* !_UNISTD_H_ */
  87.